<?php
namespace Home\Controller;
use Home\Controller\CommonController;
class IndexController extends CommonController {
    public function index(){
        $id=$_SESSION['uid'];
        $my_info = M("user")->alias("u")->join("tb_role r on r.id=u.role_id")->where("u.id={$id}")->select();
        $this->assign("my_info",$my_info);
        $this->display();
    }
}